package com.junior.mybatisredis.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Blog implements Serializable {
    private int id;
    private String title;
    private String author;
    @JSONField(format = "dd/MM/yyyy")
    private Date create_time;
    private int views;
}
